function inside(){
	var play_btn=document.querySelector(".btn_play_all");
	var play_bar=document.querySelector(".play_bar");
	var circle=document.querySelector(".circle");
	var play_stop=document.querySelector(".play_btn");
	var item=document.querySelector(".qui_list")
	var timer=null;
	var audio=document.querySelector("audio")
	
//	console.log(audio.duration)
//	window.onload = function() {console.log(document.getElementsByTagName("audio")[0].duration)}
	audio.addEventListener("canplay", mTime);
	function mTime(el){
		var allTime=el.target.duration;
//		console.log(music_time)
		console.log(allTime)
		audio.addEventListener("timeupdate", cTime);
		function cTime(ele){
			var updateTime=ele.target.currentTime
			console.log(updateTime)
			
		}
		//播放全部
		var i=0;
		play_btn.addEventListener("touchend",function(){
			play_btn.classList.add("btn_active");
			play_bar.classList.remove("btn_active");
			audio.play()
			console.log(allTime)
			timer=setInterval(function(){
				i+=((113/allTime)/10);
				circle.style.strokeDasharray=""+i+",113"
			},100)
			isBlock=false;
		})
		var isBlock=true;
		
		//开始暂停
		play_stop.addEventListener("click",function abc(){
			if(isBlock){
				play_stop.children[0].href.baseVal='#icon_pause_thin';
				audio.play();
				timer = setInterval(function(){
					i+=((113/allTime)/10);
					circle.style.strokeDasharray=""+i+",113";
				},100);
				isBlock=false;
			}else{
				play_stop.children[0].href.baseVal='#icon_play_thin';
				audio.pause();
				clearInterval(timer)
				isBlock=true;
			}
		})
	}
	
	
	//音乐列表
	function data(){
		xhr=new XMLHttpRequest;
		url="https://www.easy-mock.com/mock/5aa77cbf2b0894377fc76642/QQmusic_d"
		xhr.open("GET",url);
		xhr.send();
		xhr.addEventListener("readystatechange",function(){
			if(xhr.status==200&&xhr.readyState==4){
				a(xhr.response);
			}
		})
	}data()
	function a(res){
		var obj=JSON.parse(res);
		arr=obj.cdlist[0].songlist
		console.log(arr[1])
		arr.forEach(function(el){
			var t=`<li class="lis_item">
						<h5 class="title">${el.name}</h5>
						<p class="desc">${el.singer[0].name} · ${el.album.title}</p>
					</li>`
			item.innerHTML+=t
			
		})
		lis=document.querySelectorAll(".lis_item")
		lis.forEach(function(ele,i){
			ele.addEventListener("touchend",function(){
				alert(i)
			})
		})
	}
	
  
}
